﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
using System.Net;

namespace Babelfish.Css.Tests
{
    public class Class1
    {
        [Fact]
        public void ljkdfskfjsdh()
        {
            var list = CssParser.Parse(@"


            @import url('www.google.com');

            /  *  this is some comment a,b,c{} */
            //apan karlsson /*should not be parsed as a new comment*/
            td,td a
            {
                /*
                * 
                * this is a comment describing the property border
                * 
                **/
                border:1px solid black;//2px dashed red;
                font-family:arial
            }            


            ");

            
            foreach (var node in list)
            {
                Console.WriteLine("{0}, {1} = {2}", node.Type, node.Name, node.Value);
                foreach (var child in node.Children)
                    Console.WriteLine("- {0}, {1} = {2}", child.Type, child.Name, child.Value);
            }
        }
    }
}
